package com.aigc.txt2img.entity;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class CreateImageReques {

    @JsonProperty(value="style_id")
    @Min(value = 1 , message = "样式错误")
    @Max(value = 7 , message = "样式错误")
    private Integer styleId;

    @Length(min=1, max=128,message = "内容错误")
    private String prompt;


}
